d5027035b40d3692f1305af8bdeadffc65b924a4,org.goko.controller.tinyg.commons/src/org/goko/controller/tinyg/commons/AbstractTinyGState.java,AbstractTinyGState,setGCodeContext,#GCodeContext#,175

Before Change


		setCurrentUnit( gcodeContext.getUnit().getUnit());
		setWorkPosition(gcodeContext.getPosition());
		setMachinePosition(gcodeContext.getMachinePosition());
		updateValue(DefaultControllerValues.CONTEXT_COORD_SYSTEM, String.valueOf(gcodeContext.getCoordinateSystem()));
		updateValue(DefaultControllerValues.CONTEXT_DISTANCE_MODE, String.valueOf(gcodeContext.getDistanceMode()));
		updateValue(DefaultControllerValues.CONTEXT_PLANE, String.valueOf(gcodeContext.getPlane()));		
		updateValue(DefaultControllerValues.CONTEXT_FEEDRATE, gcodeContext.getFeedrate());		

After Change


		setCurrentUnit( gcodeContext.getUnit().getUnit());
		setWorkPosition(gcodeContext.getPosition());
		setMachinePosition(gcodeContext.getMachinePosition());
		if(gcodeContext.getCoordinateSystem() != null){
			updateValue(DefaultControllerValues.CONTEXT_COORD_SYSTEM, gcodeContext.getCoordinateSystem().getCode());
		}
		updateValue(DefaultControllerValues.CONTEXT_DISTANCE_MODE, String.valueOf(gcodeContext.getDistanceMode()));
		updateValue(DefaultControllerValues.CONTEXT_PLANE, String.valueOf(gcodeContext.getPlane()));